﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="F614_CapNhatGiangVienVaoSuKien.aspx.cs" Inherits="ChucNang_F614_CapNhatGiangVienVaoSuKien" %>
<%@ Register assembly="eWorld.UI" namespace="eWorld.UI" tagprefix="ew" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <script type = "text/javascript">
        function ValidateListBoxLoad(sender, args) {
            var options = document.getElementById("<%= m_lst_gv_da_add.ClientID%>").options;
            if (options.length > 0) {
                args.IsValid = true;
            }
            else {
                args.IsValid = false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
    <tr>
		<td class="cssPageTitleBG" colspan="4">
		    <asp:label id="m_lbl_ds_gv_sk" runat="server" CssClass="cssPageTitle" 
                Text="Cập nhật giảng viên vào sự kiện"/>
		</td>
	</tr>
    <tr>
        <td colspan="4" align="left">
		   <asp:validationsummary id="vdsCategory" runat="server" CssClass="cssManField" Font-Bold="true" />
		   <asp:label id="m_lbl_mess" runat="server" CssClass="cssManField" />
		</td>
    </tr>	
    <tr>
        <td> 
        <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0"> 
            <tr>
                <td align="right" style="width:12%;">
			<asp:label id="lbl_loai_su_kien" CssClass="cssManField" runat="server" 
                Text="&lt;U&gt;L&lt;/U&gt;oại sự kiện" />
                         </td>
                <td align="left" style="width:38%;">
                &nbsp;<asp:DropDownList id="m_cbo_loai_su_kien" runat="server" 
                        CssClass="cssDorpdownlist" Width="85%" AutoPostBack="true"
                        onselectedindexchanged="m_cbo_loai_su_kien_SelectedIndexChanged">
                    </asp:DropDownList>
                    </td>
            </tr>
            <tr>
                <td align="right" style="width:12%;">
			<asp:label id="lbl_ten_su_kien" CssClass="cssManField" runat="server" 
                Text="&lt;U&gt;S&lt;/U&gt;ự kiện" />
                         </td>
                <td align="left" style="width:38%;">
                &nbsp;<asp:DropDownList id="m_cbo_su_kien" runat="server" 
                        CssClass="cssDorpdownlist" Width="85%" AutoPostBack="true"
                        onselectedindexchanged="m_cbo_su_kien_SelectedIndexChanged" >
                    </asp:DropDownList>
                    </td>
                <td align="right" style="width:12%;">
                    			
			<asp:label id="lbl_vai_tro_giang_vien" CssClass="cssManField" runat="server" 
                Text="&lt;U&gt;V&lt;/U&gt;ai trò giảng viên" />
                    			
		            </td>
                <td align="left" style="width:38%;">
                     <asp:DropDownList id="m_cbo_vai_tro_gv" runat="server" 
                        CssClass="cssDorpdownlist" Width="65%"  >
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width:12%;">
			<asp:label id="lbl_so_tien_gv_huong" CssClass="cssManField" runat="server" 
                Text="&lt;U&gt;S&lt;/U&gt;ố tiền GV hưởng" />
                         </td>
                <td align="left" style="width:38%;">
                &nbsp;<asp:TextBox ID="m_txt_so_tien_gv_huong" runat="server" CssClass="csscurrency" 
                        Width="40%"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="req_vali3" runat="server" 
                         ErrorMessage="Bạn phải nhập số tiền GV được hưởng" Text="*" 
                        ControlToValidate="m_txt_so_tien_gv_huong"> </asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ErrorMessage="Invalid Price" Text="*"
    ValidationGroup="complete" EnableClientScript="true" ControlToValidate="m_txt_so_tien_gv_huong"
    ValidationExpression="^\d+(\.\d\d)?$" Display="Dynamic" runat="server"/>
                 <asp:CompareValidator runat="server" id="CompareValidator2" Operator="GreaterThanEqual" Type="Currency"
                Display="Dynamic" ValueToCompare="0" ControlToValidate="m_txt_so_tien_gv_huong" Text="*" ErrorMessage = "Số tiền nhập không đúng định dạng" CssClass="cssManField" />
                    </td>
            <td align="right" style="width:12%;">
			<asp:label id="lbl_ngay_tt" CssClass="cssManField" runat="server" 
                Text="&lt;U&gt;T&lt;/U&gt;hanh toán ngay" />
                    			
		            </td>
                <td align="left" style="width:38%;">
                     <asp:RadioButtonList ID="m_rdl_thanh_toan_ngay" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="N" Selected="True">Không</asp:ListItem>
                <asp:ListItem Value="Y">Có</asp:ListItem>
            </asp:RadioButtonList>
                </td>
            </tr>
             <tr>
                <td align="left" colspan="2">
			<asp:label id="lbl_so_tien_gv_huong0" CssClass="cssManField" runat="server" 
                Text="Danh sách giảng viên tham gia sự kiện:" />
                         </td>
            </tr>
            <tr>
               <td align="right" style="width:12%;">
			
			<asp:label id="lbl_ten_su_kien0" CssClass="cssManField" runat="server" 
                Text="Họ tên giảng viên" />
                         </td>
		<td align="left">
			<asp:TextBox ID="m_txt_ho_ten_giang_vien" runat="server" Width="42%"></asp:TextBox>
                &nbsp;
            <asp:button id="m_cmd_tim_kiem" accessKey="u" CssClass="cssButton" CausesValidation="false"
                runat="server" Width="98px" Height="25px"  Text="Tìm kiếm" onclick="m_cmd_tim_kiem_Click"
                 />
                </td> 
		<td align="left">
			&nbsp;</td> 
		<td align="left">
			&nbsp;</td> 
            </tr>
            <tr>
               <td align="right" style="width:12%;">
			
			<asp:label id="lbl_ten_su_kien1" CssClass="cssManField" runat="server" 
                Text="Đơn vị quản lý" />
                         </td>
		<td align="left">
                     <asp:DropDownList id="m_cbo_don_vi_quan_ly" runat="server" 
                        CssClass="cssDorpdownlist" Width="65%" AutoPostBack="true"
                         onselectedindexchanged="m_cbo_don_vi_quan_ly_SelectedIndexChanged">
                    </asp:DropDownList>
                </td> 
		<td align="left">
			&nbsp;</td> 
		<td align="left">
			&nbsp;</td> 
            </tr>
            <tr>
               <td align="right" style="width:12%;">
			
                         &nbsp;</td>
		<td align="left">
			<asp:label id="lbl_so_tien_gv_huong1" CssClass="cssManField" runat="server" 
                Text="D/S giảng viên chưa cập nhật vào sự kiện" />
                         </td> 
		<td align="left">
			&nbsp;</td> 
		<td align="left">
			<asp:label id="lbl_so_tien_gv_huong2" CssClass="cssManField" runat="server" 
                Text="D/S giảng viên đã cập nhật vào sự kiện" />
                         </td> 
            </tr>
            <tr>
               <td align="right" style="width:12%;">
			
                         &nbsp;</td>
		<td align="left">
			<asp:ListBox ID="m_lst_gv_chua_add" runat="server" Width="300px" Height="300px" 
                SelectionMode="Multiple"></asp:ListBox>
		        </td> 
		<td align="center">
			<asp:ImageButton ID="m_cmd_right" runat="server" Height="19px" CausesValidation="false"
                ImageUrl="~/Images/ListTran/right.gif" onclick="m_cmd_right_Click" /> <br />
            <asp:ImageButton ID="m_cmd_right_all" runat="server" CausesValidation="false"
                ImageUrl="~/Images/ListTran/rightAll.gif" onclick="m_cmd_right_all_Click" />
            <br />
            <br />
            <asp:ImageButton ID="m_cmd_left" runat="server" CausesValidation="false"
                ImageUrl="~/Images/ListTran/left.gif" onclick="m_cmd_left_Click" 
                style="height: 19px" /> <br />
            <asp:ImageButton ID="m_cmd_left_all" runat="server" CausesValidation="false"
                ImageUrl="~/Images/ListTran/leftAll.gif" onclick="m_cmd_left_all_Click" />
                </td> 
		<td align="left">
			<asp:ListBox ID="m_lst_gv_da_add" runat="server" Width="300px" 
                Height="300px" SelectionMode="Multiple"></asp:ListBox>
                <asp:CustomValidator ID="CustomValidator1" runat="server" Text="*" ErrorMessage="Phải assign ít nhất 01 giảng viên cho sự kiện"
                    ClientValidationFunction = "ValidateListBoxLoad"></asp:CustomValidator>
		        </td> 
            </tr>
            <tr>
	    <td></td>
		<td colspan="3" align="left">
			&nbsp;<asp:button id="m_cmd_cap_nhat" accessKey="u" CssClass="cssButton" 
                runat="server" Width="98px" Height="25px"  Text="Cập nhật(u)" onclick="m_cmd_cap_nhat_Click" 
                 />&nbsp;&nbsp;
			        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<asp:button id="btnCancel" accessKey="r" CssClass="cssButton" runat="server" 
                Width="98px" Height="25px"  Text="Thoát" CausesValidation="false" 
                onclick="btnCancel_Click" />
		    <asp:HiddenField ID="hdf_id" runat="server" Value="" />
        </td>
	</tr>
            </table>        
        </td>
    </tr> 
</table>
</asp:Content>

